package com.litchi.tutor.common.exception;

import lombok.Getter;

/**
 * @author hoby
 * @since 2021-08-19
 */
@Getter
public class CustomException extends RuntimeException {

    private Integer errCode = 400;

    public CustomException(String errMsg) {
        super(errMsg);
    }

    public CustomException(Integer errCode, String errMsg) {
        super(errMsg);
        this.errCode = errCode;
    }
}
